package com.yggdrasil.graphics;

public abstract class Drawable implements Comparable<Drawable> {

	protected int z;
	protected float x, y;

	@Override
	public int compareTo(Drawable d) {
		return (this.z - d.z < 0) ? -1 : 1;
	}

	public float getX() {
		return x;
	}

	public float getY() {
		return y;
	}
}
